﻿@{
    ViewBag.Title = "首页";
    Layout = "~/Views/Shared/IndexLayout.cshtml";
}

<div data-options="region:'north',border:false" style="height:30px">
    <!--  menu  -->
    <div id="navigate" style="height:100%;padding-left:5px; background-color: #e0ecff;">
        <a href="#" class="easyui-splitbutton" data-options="menu:'#menu-system',iconCls:'icon-sysset'">系统</a>
        <div id="menu-system">
            <div style="width:150px;" data-options="iconCls:'icon-user_edit'" onclick="openChangePassword()">修改密码</div>
            <div style="width:150px;" data-options="iconCls:'icon-user_go'" onclick="logout()">注销</div>
        </div>
        @Html.Action("RenderMenuNavigate")
    </div>
    <!--  /menu  -->
</div>
@section Script{
    <script>
        $(function () {
            $('.willow-menu').click(function () {
                var options = $(this).data('options');
                if (options.substring(0, 1) != '{') {
                    options = '{' + options + '}';
                }
                var options = (new Function('return ' + options))();
                var url = options.url;
                var iconCls = options.iconCls;
                var tabTitle = $(this).text();
                addTab(tabTitle, url, iconCls);
            });
        });
    </script>
}